import request from '../request'
//购物车列表
let CART_URL = '/member/cart'
//收货地址
let ADDRESS_URL = '/member/address'
//添加地址
let ADDRESS_ADD = '/member/address'
//生成订单
let PRE_URL = ' /member/order/pre'
//购物车列表数据的设置api
export function mergecart() {
    return request({
        url: CART_URL,
        method: 'get',
    })
}
//获取地址
export function listress() {
    return request({
        url: ADDRESS_URL,
        method: 'get',
    })
}
//订单数据的设置api
export function mergepre() {
    return request({
        url: PRE_URL,
        method: 'get',
    
    })
}
//添加地址
export function address(params) {
    return request({
        url: ADDRESS_ADD,
        method: 'post',
        data: params,
    })
}
